package com.atguigu.gmall.utils

import java.io.InputStreamReader
import java.util.Properties

/**
  * @ClassName: PropertiesUtil
  * @Description:
  * @Author: kele
  * @Date: 2021/3/17 15:17
  **/
object PropertiesUtil {

  def load(propertieName:String): Properties ={
    val prop=new Properties()
    prop.load(new InputStreamReader(Thread.currentThread().getContextClassLoader.getResourceAsStream(propertieName) , "UTF-8"))
    prop
  }
}
